﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.RepairRecordVMs
{
    public partial class RepairRecordBatchVM : BaseBatchVM<RepairRecord, RepairRecord_BatchEdit>
    {
        public RepairRecordBatchVM()
        {
            ListVM = new RepairRecordListVM();
            LinkedVM = new RepairRecord_BatchEdit();
        }

    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class RepairRecord_BatchEdit : BaseVM
    {
        [Display(Name = "产线号")]
        public String LineCode { get; set; }
        [Display(Name = "返修工序号")]
        public String OperationCode { get; set; }
        [Display(Name = "返修工序名称")]
        public String OperationName { get; set; }
        [Display(Name = "返修前SN")]
        public String OldSN { get; set; }
        [Display(Name = "新SN")]
        public String CurrentSN { get; set; }
        [Display(Name = "电机号")]
        public String TZMaterialCode { get; set; }
        [Display(Name = "返修状态码")]
        public String RepairStatus { get; set; }
        [Display(Name = "返修信息描述")]
        public String Description { get; set; }
        [Display(Name = "返修时间")]
        public String uploadTime { get; set; }
        [Display(Name = "上传状态")]
        public Boolean? uploadFlag { get; set; }
        [Display(Name = "预留域1")]
        public String Filed1 { get; set; }
        [Display(Name = "预留域2")]
        public String Filed2 { get; set; }

        protected override void InitVM()
        {
        }

    }

}
